package com.xcx.dto;


import com.xcx.common.dto.base.BaseReq;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

@Getter
@Setter
public class QueryVideoListReq extends BaseReq {

	private static final long serialVersionUID = 12345678997543L;

	private Integer currentPage;

    private Integer pageSize;

    @Override
    public String validate() {
        String result = super.validate();
        if (StringUtils.isNotBlank(result)) {
            return result;
        }
        if (null == currentPage) {
        	return "查询页数不能为空";
		}
        return null;
    }
}
